package com.example.echoewish.pojo;

import androidx.room.Entity;
import androidx.room.Insert;
import androidx.room.PrimaryKey;

@Entity
public class ChatEntity {
    @PrimaryKey(autoGenerate = true)
    public Integer bh;
    public Integer myId;
    public Integer otherId;
    public String time;
    public String content;

    public ChatEntity(Chat chat)
    {
        this.myId=chat.id;
        this.otherId=chat.otherId;
        this.time=chat.time;
        this.content=chat.content;
    }

    public ChatEntity(Integer myId,Integer otherId,String time,String content)
    {
        this.myId=myId;
        this.otherId=otherId;
        this.time=time;
        this.content=content;
    }
}
